<link
	href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}"
	rel="stylesheet" type="text/css">
<style>
</style>
<div class="pageContent">
	<form method="post"
		action="${rc.getContextPath()}/manage/personnel/savePersonnel"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this, function(json){DWZ.ajaxDone(json); $('#jGridForPersonnel', DWZ.context().data('_parent')).jGrid('loadData');$.pdialog.close(DWZ.context());});">
		<div class="pageFormContent">
			<input type="hidden" name="navTabId" value="${navTabId!''}" /> <input
				type="hidden" name="rel" value="personnelList" /> <input
				type="hidden" name="id"
				value="<#if (personnel.personnelCode)??>${personnel.personnelCode!''}</#if>">
			<p>
				<label><@label key='personnelCode.C,colon'>人员编号：</@label></label> <input
					type="text" name="personnelCode" class="required alphanumeric toUp"
					value="${personnel.personnelCode!''}" size="20" type="text"
					maxlength="20" readonly="readonly" />
			</p>

			<p>
				<label><@label key='personnelName.C,colon'>人员名称：</@label></label> <input
					type="text" class="required" maxlength="60" name="personnelName"
					value="${personnel.personnelName!''}" />
			</p>

			<p>
				<label><@label key='workCenter.C,colon'>工作中心：</@label></label> <input
					name="workCenterCode" size="22" type="text" maxlength="20"
					class="required  alphanumeric toUp" id="workCenter.workCenterCode"
					lookupGroup="workCenter"
					value="${personnel.workCenterCode!''}" postField="workCenterCode"
					suggestFields="workCenterCode,workCenterText"
					suggestUrl="${rc.getContextPath()}/manage/workCenter/workCenterSuggest?hr=hr"
					remote="${rc.getContextPath()}/manage/workCenter/validateWorkCenterForHr?originalCode=${personnel.workCenterCode!''}"
					warn="<@label key='workCenter.C,doesNotExist.C'>工作中心不存在</@label>" />
			</p>

			<p>
				<label><@label key='userCode.C,colon'>用户编号：</@label></label> <input
					name="userCode" size="22" type="text" maxlength="20"
					class="alphanumeric toUp" id="user.userCode"
					lookupGroup="user"
					value="${personnel.userCode!''}" postField="userCode"
					suggestFields="userCode,userText"
					suggestUrl="${rc.getContextPath()}/manage/user/userSuggest"
					remote="${rc.getContextPath()}/manage/user/checkedUserCodeNotExits"
					warn="<@label key='userCode.C,doesNotExist.C'>用户编号不存在</@label>" />
			</p>


			<p>
				<label>&nbsp;</label> <label> <input type="checkbox"
					name="lockFlag" value="1"<#if (personnel.lockFlag)?? &&
					(personnel.lockFlag == 1)> checked="true"</#if>><@label
					key="lock.C">锁定</@label>
				</label>
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive" id="save">
						<div class="buttonContent">
							<button type="submit"><@label key="save.B">保存</@label></button>
						</div>
					</div></li>
				<li>
					<div class="buttonActiveGrey">
						<div class="buttonContent">
							<button type="button" class="close"><@label
								key="cancel.B">取消</@label></button>
						</div>
					</div>
				</li>
			</ul>
		</div>

	</form>
</div>